const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      '/foo': {//匹配所有以/api开头的请求路径
        target: 'http://47.92.163.212:8080',//代理目标的基础路径
        pathRewrite: { '^/foo': '' },
        ws: true,
        changeOrigin: true,
      },
    }
  }
})
